Skip to content

fix: propagate A2A request metadata into the run config in AgentExecutor#1345

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_945055254
Jul 13, 2026
Merged

fix: propagate A2A request metadata into the run config in AgentExecutor#1345
copybara-service[bot] merged 1 commit into
mainfrom
test_945055254

Conversation

@copybara-service

Copy link
Copy Markdown

fix: propagate A2A request metadata into the run config in AgentExecutor

During A2A communication, AgentExecutor invoked the 4-argument
Runner.runAsync, which hardcodes stateDelta = null and silently dropped the
caller's incoming request metadata.

Route the incoming request metadata (RequestContext.getParams().metadata())
into RunConfig.customMetadata under the a2a_metadata key, so downstream
processing can read it. This mirrors ADK Python and Go, which pass A2A request
metadata through the run config and leave the session state delta null, rather
than writing framework IDs into session state. Add tests for the metadata and
no-metadata cases.

@copybara-service
copybara-service Bot force-pushed the test_945055254 branch 2 times, most recently from 7f7d527 to 57ba264 Compare July 13, 2026 10:47
…utor`

During A2A communication, `AgentExecutor` invoked the 4-argument
`Runner.runAsync`, which hardcodes `stateDelta = null` and silently dropped the
caller's incoming request metadata.

Route the incoming request metadata (`RequestContext.getParams().metadata()`)
into `RunConfig.customMetadata` under the `a2a_metadata` key, so downstream
processing can read it. This mirrors ADK Python and Go, which pass A2A request
metadata through the run config and leave the session state delta null, rather
than writing framework IDs into session state. Add tests for the metadata and
no-metadata cases.

PiperOrigin-RevId: 946936540
@copybara-service
copybara-service Bot merged commit 410ff81 into main Jul 13, 2026
@copybara-service
copybara-service Bot deleted the test_945055254 branch July 13, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant